package com.woniu.client;

import com.woniu.commons.exception.YogaException;
import com.woniu.commons.model.Result;
import com.woniu.model.AddLeagueClassDetailForm;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.time.LocalDateTime;
import java.util.Set;

@FeignClient(name = "order-server", path = "/order")
public interface OrderClient {

    /**
     * 新增团课详细跟踪
     * @param form
     * @return
     */
    @PostMapping("/yLeagueClassDetail/addLeagueClassDetail")
    @ApiOperation(value = "新增团课详细跟踪")
    public Result<?> addLeagueClassDetail(@RequestBody AddLeagueClassDetailForm form);

    /**
     * 完成团课详细
     * @param leagueClassWorkforceId
     * @return
     */
    @GetMapping("/yLeagueClassDetail/finishLeagueClassDetail")
    @ApiOperation(value = "完成团课详细")
    public Result finishLeagueClassDetail(@SpringQueryMap Integer leagueClassWorkforceId);

    /**
     * 取消团课详细
     * @param leagueClassWorkforceId
     * @return
     */
    @GetMapping("/yLeagueClassDetail/cancelLeagueClassDetail")
    @ApiOperation(value = "取消团课详细")
    Result<?> cancelLeagueClassDetail(@SpringQueryMap Integer leagueClassWorkforceId);
}
